<!-- =============================================== -->
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="header-icon">
            <i class="pe-7s-world"></i>
        </div>
        <div class="header-title">
            <h1><?php echo display('edit_print_pattern');?></h1>
            <small><?php echo display('edit_print_pattern');?></small>
           
        </div>
    </section>

    <!-- Main content -->
    <section class="content">
                <div class="row">
        <!--  form area -->
        <div class="col-sm-12">
            <div  class="panel panel-default panel-form">

                <div class="panel-heading ">
                        <div class="panel-title">
                            <h4><?php echo display('edit_print_pattern');?></h4>
                        </div>
                    </div>
                <div class="panel-body">
                    <div class="portlet-body form">
                
                       <?php if( validation_errors()){ ?>
                             <div class="alert alert-danger"> <!--bootstrap error div-->
                                 <?php  echo validation_errors(); ?>
                             </div>
                        <?php } ?>

                        <?php 
                          $msg = $this->session->flashdata('message');
                           if($msg){
                               echo html_escape($msg);
                           }
                            $attributes = array('class' => 'form-horizontal','role'=>'form','name'=>'ff');
                            echo form_open_multipart('admin/print_pattern/Print_pattern_controller/update_setup', $attributes);                
                         ?>
                       
                            
                            <div class="form-body">
                                
                                <input type="hidden" value="<?php echo html_escape($pattern->pattern_no);?>" name="pattern">
                                <input type="hidden" value="<?php echo html_escape($pattern->id);?>" name="id">

                                
                                <div class="form-group">
                                    <label class="col-md-3 control-label"><?php echo display('header_blank');?></label>
                                    <div class="col-md-5">
                                        <div class="input-group  input-daterange">
                                            <input type="text" required value="<?php echo html_escape($pattern->header_height);?>" name="h_height" placeholder="<?php echo display('height');?>"  class="form-control">
                                            <span class="input-group-addon"> | </span>
                                            <input type="text" required value="<?php echo html_escape($pattern->header_width);?>" name="h_width" placeholder="<?php echo display('width');?>" class="form-control"> <span class="input-group-addon">px </span>
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-md-3 control-label"><?php echo display('footer_blank');?></label>
                                    <div class="col-md-5">
                                        <div class="input-group  input-daterange">
                                            <input type="text" required value="<?php echo html_escape($pattern->footer_height);?>" name="f_height" placeholder="<?php echo display('height');?>"  class="form-control">
                                            <span class="input-group-addon"> | </span>
                                            <input type="text" required value="<?php echo html_escape($pattern->footer_width);?>" name="f_width" placeholder="<?php echo display('width');?>" class="form-control"> <span class="input-group-addon">px </span>
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-md-3 control-label"><?php echo display('side_content');?></label>
                                    <div class="col-md-5">
                                        <div class="input-group  input-daterange">
                                            <input type="text" required value="<?php echo html_escape($pattern->content_height_1);?>" name="content1_height" placeholder="<?php echo display('height');?>"  class="form-control">
                                            <span class="input-group-addon"> | </span>
                                            <input type="text" required value="<?php echo html_escape($pattern->content_width_1);?>" name="content1_width" placeholder="<?php echo display('width');?>" class="form-control"> <span class="input-group-addon">px </span>
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-md-3 control-label"><?php echo display('content_blank');?></label>
                                    <div class="col-md-5">
                                        <div class="input-group  input-daterange">
                                            <input type="text" required value="<?php echo html_escape($pattern->content_height_2);?>" name="content2_height" placeholder="<?php echo display('height');?>"  class="form-control">
                                            <span class="input-group-addon"> | </span>
                                            <input type="text" required value="<?php echo html_escape($pattern->content_width_2);?>" name="content2_width" placeholder="<?php echo display('width');?>" class="form-control"> <span class="input-group-addon">px </span>
                                        </div>
                                    </div>
                                </div>
                            </div>


                            <div class="form-group row">
                                <div class="col-sm-offset-3 col-sm-6">
                                   
                                    <button type="submit" class="btn btn-success"><?php echo display('update')?></button>
                                   
                                </div>
                            </div>
                        <?php echo form_close();?>
                    </div>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>

    </div>            
    </section>
</div>
